package kr.co.doriclassic.pro05_10;

import java.util.Scanner;

class Pyramid{
	private double ac, ae, bc, de;
	
	public Pyramid(double ac, double ae, double bc) {
		this.ac = ac;
		this.ae = ae;
		this.bc = bc;
	}
	
	public void accDe(){
		de = (ae*bc)/ac;
		System.out.println("피라미드 높이 DE의 길이는 "+de+"이다.");
	}
}

public class Thales {
	public static void main(String[] args) {
		double ac, ae, bc;
				
		Scanner sc = new Scanner(System.in);
		System.out.print("ac :");
		ac = sc.nextDouble();
		System.out.print("ae :");
		ae = sc.nextDouble();
		System.out.print("bc :");
		bc = sc.nextDouble();
		
		Pyramid p = new Pyramid(ac, ae, bc);
		p.accDe();
	}
}